package cn.ml.chuji.oop.zuChe;

public abstract class MotoVehicle {
    //车牌号  配牌  日租金
    private String ID;
    private String brand;
    private int riZuJin;

    @Override
    public String toString() {
        return "MotoVehicle{" +
                "ID='" + ID + '\'' +
                ", brand='" + brand + '\'' +
                ", riZuJin=" + riZuJin +
                '}';
    }

    //计算租金（抽象方法）
    public abstract float zuJin(int days);


    public MotoVehicle() {
    }

    public MotoVehicle(String ID, String brand, int riZuJin) {
        this.ID = ID;
        this.brand = brand;
        this.riZuJin = riZuJin;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getRiZuJin() {
        return riZuJin;
    }

    public void setRiZuJin(int riZuJin) {
        this.riZuJin = riZuJin;
    }



}
